const afUrl = "https://autumnfish.cn"
export const afRequest = (options) => {
	return new Promise((resolve, reject) => {
		uni.request({
			url: afUrl + options.url,
			method: options.method || "GET",
			data: options.data || {},
			success: (res) => {
				resolve(res)
			},
			fail: (err) => {
				reject(err)
			}
		})
	})
}
